﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Threading.Tasks;

namespace LJLNet.SocketTCPPeer
{
    public class ClientPeer : BasePeer
    {
        public ClientPeer(Socket socket) : base(socket)
        {
        }
         
        public override void OnDisconnect()
        {
            
        }

        public override void OnOperationRequest(Dictionary<byte, object> parameters)
        {
            Console.WriteLine(parameters.FirstOrDefault(q=>q.Key==1).Value.ToString());
            OnOperationResponse(new Dictionary<byte, object>() { { 0, "你好" } });
        }
    }
}
